function authrize(id){
	window.layerIndex=layer.open({
	    type: 2,
	    title: '权限管理',
	    shadeClose: false,
	    shade: 0.8,
	    scrollbar:false,
	    area: ['380px', '70%'],
	    content: basepath+'/sys/user/fun?uid='+id
	}); 
}
function authFun(ids, rid){
	layer.close(layerIndex);
	var index = layer.msg('处理中，请稍后...', {icon: 16,shade: [0.5, '#393D49'],time:0});
	if(""==ids){
		layer.close(index);
		layer.msg("未做权限修改！");
		return false;
	}
	$.post(basepath+"/sys/user/mfun",{uid:rid, mids:ids}, function(data){
		if(data.state==200){
			layer.close(index);
			layer.msg("授权成功");
		}else{
			layer.close(index);
			layer.msg("授权异常");
		}
	},"json");
}